package com.fjec.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 008.用户礼物变化记录表
 * </p>
 *
 * @author admin
 * @since 2020-09-18
 */
@TableName("biz_user_gift_change_record")
public class BizUserGiftChangeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 用户礼物Id
     */
    @TableField("UserGiftId")
    private Long userGiftId;

    /**
     * 操作类型 1=购买
2=送礼
3=收到礼物
4=发起秒杀活动
5=秒杀活动获取
6=秒杀到期返还
     */
    @TableField("OpeType")
    private Integer opeType;

    /**
     * 变化数量 增加为正，消费为负
     */
    @TableField("Num")
    private Integer num;

    /**
     * 业务数据 操作类型=1（购买） 订单Id
操作类型=2（送礼） 赠送礼物Id
操作类型=3（收到礼物） 赠送礼物Id
操作类型=4（发起秒杀活动） 秒杀活动Id
操作类型=5（秒杀活动获取） 秒杀活动Id
操作类型=6（秒杀到期返还） 秒杀活动Id
     */
    @TableField("BusiData")
    private String busiData;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserGiftId() {
        return userGiftId;
    }

    public void setUserGiftId(Long userGiftId) {
        this.userGiftId = userGiftId;
    }
    public Integer getOpeType() {
        return opeType;
    }

    public void setOpeType(Integer opeType) {
        this.opeType = opeType;
    }
    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
    public String getBusiData() {
        return busiData;
    }

    public void setBusiData(String busiData) {
        this.busiData = busiData;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "BizUserGiftChangeRecord{" +
            "id=" + id +
            ", userGiftId=" + userGiftId +
            ", opeType=" + opeType +
            ", num=" + num +
            ", busiData=" + busiData +
            ", createTime=" + createTime +
        "}";
    }
}
